using Orchard.Environment.Extensions;
using Orchard.UI.Resources;
namespace ATTools
{
    [OrchardFeature("ATTools")]
    public class ResourceManifest : IResourceManifestProvider
    {
        public void BuildManifests(ResourceManifestBuilder builder)
        {
            var manifest = builder.Add();
            manifest.DefineScript("AudioPlayer").SetUrl("AudioPlayer.js").SetVersion("1.0.0").SetDependencies("jQuery");
            manifest.DefineStyle("Sound").SetUrl("Sound.css");
            manifest.DefineStyle("Textsize").SetUrl("Textsize.css");
        }
    }

    [OrchardFeature("ATTools.VoiceCommands")]
    public class ResourceManifestVoice : IResourceManifestProvider
    {
        public void BuildManifests(ResourceManifestBuilder builder)
        {
            var manifest = builder.Add();
            manifest.DefineScript("SpeechOnAllInput").SetUrl("SpeechOnAllInput.js").SetVersion("1.0.0").SetDependencies("jQuery");
            manifest.DefineScript("SpeechCommentArea").SetUrl("SpeechCommentArea.js").SetVersion("1.0.0");
            manifest.DefineStyle("VoiceCommandWidget").SetUrl("VoiceCommandWidget.css");
        }
    }
}
